home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
util
/
batch
/
adx10.lha
/
adxTest
< prev
Wrap
AmigaDOS Script File
|
1999-01-11
|
1KB
|
66 lines
.key file/a
; $VER: adxTest v1.0 (11.01.99) by Oliver Borrmann / Public Domain
;
; Purpose: Integrity checking for adx archives (LZX archived floppy disk images)
;
; Usage : adxTest <file>
;
; -> file names are case sensitive
;
; Example: adxTest zork.adx
;
; tests the integrity of the disk image in zork.adx
;
; Requirements: adxTest requires LZX to be in c:
failat 21
echo ""
echo "adxTest v1.0 (11.01.99) by Oliver Borrmann / Public Domain"
echo ""
;-) some checks
if not exists c:lzx
echo ""
echo "Error: LZX not found in C:"
echo "Operation aborted"
echo ""
skip end
endif
if not exists <file>
echo ""
echo "Error: File <file> does not exist"
echo "Operation aborted"
echo ""
skip end
endif
;-) testing...
lzx -q1 -X0 t <file> diskimg.adf
if not warn
echo ""
echo "File <file> is ok"
echo ""
skip done
endif
echo ""
echo "File <file> is corrupted"
echo ""
;-) everything done
lab done
echo "All done!"
echo ""
;-) the end
lab end